package com.sws.yygh.hosp.repository;

import com.sws.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @program: Appointment-hospital-registration-system
 * @description:
 * @author:
 * @create: 2022-07-17 17:30
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String>{
    /**
     * 根据hoscode获取医院信息
     * @param hoscode
     * @return
     */
    Hospital getHospitalByHoscode(String hoscode);
}
